package com.tempjob.app.dto;

import com.anwen.mongo.annotation.collection.CollectionField;
import com.tempjob.common.model.WorkDayModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author hui
 * @Date 2024/11/4 15:58
 **/

@Data
public class JobInfoModifyDTO {

    @ApiModelProperty("id,修改传")
    private String id;

    @CollectionField("job_type")
    @ApiModelProperty("工作类型:1零工2正式工")
    private Integer jobType;

    @ApiModelProperty("工作分类")
    private String jobCategory;

    public Integer getJobType() {
        if (jobType == null) {
            jobType = 1;
        }
        return jobType;
    }

    @ApiModelProperty("工作时间")
    private List<WorkDayModel> workDayList;

    @ApiModelProperty("记薪单位:1.元/月,2.元/天,3.元/小时")
    private Integer salaryType;

    @ApiModelProperty("薪水")
    private Integer salary;

    @ApiModelProperty("标题")
    private String jobTitle;

    @ApiModelProperty("工作说明")
    private String jobContent;

    @ApiModelProperty("介绍图片")
    private List<String> descImages;

    @ApiModelProperty("待遇标签,提供住宿、无须经验等")
    private List<String> treatmentTags;

    @ApiModelProperty("结算方式:1日结2月结")
    private Integer settlementType;

    @ApiModelProperty("ico")
    private String ico;

    @ApiModelProperty("经度")
    private Double longitude;

    @ApiModelProperty("纬度")
    private Double latitude;

    @ApiModelProperty("地址")
    private String jobAddress;

    @ApiModelProperty("联系电话")
    private String contactPhone;

    @ApiModelProperty("联系人")
    private String contackName;

    @ApiModelProperty("工作属性:1个人发布2公司发布3企业发布")
    private Integer publishNature;

    @ApiModelProperty("学历要求")
    private String educational;
}
